<template>
	<view class="welcome-page">
		<view class="icon-back" @click="backPage">
			退出迎宾模式
		</view>
		<text class="tip-wel">
			{{welcomeInfo.content}} 
		</text>
	</view>
</template>

<script>
	import { fetchData } from '../../utils/request';
	export default {
		data() {
			return {
				welcomeInfo:{}
			};
		},
		methods:{
			
			async getCompanyInfo(){
				let res = await fetchData({
				        url:'/database/wlcomeGuests/guests/list',
				        method:'GET',
						data:{
							enable:1,
							schoolId:this.$store.state.schoolId
						}
				 })	
				 if(res.code == 200) {
					  this.welcomeInfo = res.rows[0];
				 }
				
			},
			
			backPage(){
				uni.navigateBack();
			}
		},
		mounted(){
			this.getCompanyInfo();
			
		}
	}
</script>

<style lang="scss">
.welcome-page {
	width:100vw;
	height:100vh;
	background: url($imageurl+'/introduce/welcome-bg.jpg') left top no-repeat;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30.25upx;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	
	.tip-wel {
		font-weight: bold;
		font-size: 46.09upx;
		line-height:70.09upx;
		color: #FFFFFF;
		letter-spacing: 2.56upx;
		text-shadow: 0px 2.34upx 1.56upx rgba(0,5,125,0.75);
		text-align: center;
		font-style: normal;
		text-transform: none;
	}
}
</style>
